#Propensity Score Matching

Collection of 3 technical entries associated with this specific classification.

The Astro logo on a dark background with a pink glow.
Article
6 min read

A Step-by-Step Walkthrough: Implementing PSM in Python

You understand the theory of PSM. Now, let's build it. In this step-by-step tutorial, I generate a synthetic financial dataset and walk through the entire process: ✅ Simulating confounding variables ✅ Estimating propensity scores ✅ Matching treated & control units ✅ The CRITICAL balance check (don't skip this!) ✅ Calculating the causal effect on churn

The Astro logo on a dark background with a pink glow.
Article
7 min read

PSM vs. IPW: A Practical Guide to Choosing Your Causal Method

I read this advice in a great book on causal inference and it's a common point of confusion. Should you always prefer Inverse Probability Weighting (IPW) over Propensity Score Matching (PSM)?

The Astro logo on a dark background with a pink glow.
Article
5 min read

The Magic of Mimicking Randomization: An Intro to Propensity Score Matching

A/B tests are the ideal, but the real world is messy. So how do we find causal answers when we can't randomize? We use Propensity Score Matching (PSM) to create statistical 'twins'.